package com.fany.utils;

import android.content.Context;
import android.view.Display;
import android.view.WindowManager;

@SuppressWarnings("deprecation")
public class SystemUtils
{
	private static int _screenWidth;
	private static int _screenHeight;
	static
	{
		WindowManager manager = (WindowManager) ContextUtils.getInstance().getSystemService(Context.WINDOW_SERVICE);
		Display display = manager.getDefaultDisplay();
		_screenWidth = display.getWidth();
		_screenHeight = display.getHeight();
	}

	public static int getScreenWidth()
	{
		return _screenWidth;
	}
	
	public static int getScreenHeight()
	{
		return _screenHeight;
	}
}
